#include <iostream>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

using namespace std;

class ServerSocket {
private:
    int ServerSock;
    int ClientSock;
    sockaddr_in ServerAddress;
    sockaddr_in ClientAddress;
    char* IPAddress;
    int Port;
    char* SendMessage;
    char* ReceiveMessage;

public:
    ServerSocket();

    void SetIPAddress(string str);
    void SetPort(int Port);
    void SetSocket();
    void SetSendMessage(string SendMessage);
    bool Send();
    bool Receive();

    char* showReceiveMessage();
};